<?php
$name = $_GET['name'];
 $sql="SELECT touxiang_img FROM tbl_user WHERE `name`='$name'";
 $link = mysqli_connect("127.0.0.1","root","","news");
 mysqli_set_charset($link, "utf8");
 $res=mysqli_query($link, $sql);
 if(mysqli_num_rows($res)>0){
		while($raw = mysqli_fetch_assoc($res)){
                $rasults[]=$raw;
			echo json_encode($rasults);
		}
		
	}
?>